package com.zhuhjay.common.base.config;

import cn.hutool.extra.mail.MailAccount;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ZhuHJay
 * @date 2023/3/13 16:08
 */
@Configuration
public class MailConfig {

    @Bean
    @ConfigurationProperties(prefix = "generic-boot.mail")
    public MailAccount mailAccount() {
        return new MailAccount();
    }

}
